<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
  <head>
  <script type="text/javascript">
  $(document).ready(function(){
  		initTree();
  });
  
  function go(url){
  	top.mainFrame.location = url;
  }
  
  function logOut(){
  		if(top.mainFrame){
			top.location.href="${ctx}/pages/logout.action";
		}else{
			document.location.href="${ctx}/pages/logout.action";
		}
  }
  </script>
  
  </head>
 <body id="body_left">
<div id="sidebar">
    <div id="sidebar-wrapper">
      <!--h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
      <a href="##"><img id="logo" src="${ctx}/images/logo.png" alt="Simpla Admin logo" /></a>  -->
      <div id="profile-links" style="line-height: 25px;">${user.userName}&nbsp;&nbsp;<a href="javascript:void(0)" title="修改密码" onclick="go('${ctx}/pages/user/editPwd.action');">修改密码</a> | <a href="javascript:void(0)" onclick="logOut()" title="Sign Out">退出</a> </br><%=new java.util.Date()%></div>
      <ul id="main-nav">
        	${treeHtml}
      </ul>
    </div>
  </div>
</body>
</html>
